package icu.d4peng.cloud.common.log.constant;

/**
 * @author d4peng
 * @version 1.0.0
 * @date 2021-12-27 14:33
 * @description LogConstant:日志常量
 */
public enum LogConstant {
    MDC("roc", "mdc"),
    TRACE_ID("traceId", "trace id"),
    SPAN_ID("spanId", "span id"),
    PRE_IP("preIp", "pre ip"),
    PRE_APP("preApp", "pre app"),
    PRE_HOST("preHost", "pre host"),
    NONE("NONE", "none"),
    ;

    /**
     * 日志标志名称
     */
    private final String name;
    /**
     * 描述
     */
    private final String desc;

    LogConstant(String name, String desc) {
        this.name = name;
        this.desc = desc;
    }

    public String getName() {
        return name;
    }

    public String getDesc() {
        return desc;
    }
}
